<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">标签名称</label>
            <label class="layui-col-xs10">
                <input name="tag_name"  value='{$vo.tag_name|default=""}' placeholder="请输入标签名称" class="layui-input">
            </label>
        </div>

        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">标签类型</label>
            <label class="layui-col-xs10">
                <select class="layui-select"  name="type" lay-search>
                    
                    {foreach name="$transtag" item="cate" key="k" }
                      {if isset($vo.type) and $vo.type eq $k}
                      <option selected value="{$k}">{$cate|default=''}</option>
                      {else}
                      <option  value="{$k}">{$cate|default=''}</option>
                      {/if}
                    {/foreach}
                </select>
            </label>
        </div>
       
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">排序</label>
            <label class="layui-col-xs10">
                 <input name="sort" type="number" value='{$vo.sort|default="20"}' placeholder="请输入数值" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs2 think-form-label">状态</label>
            <label class="layui-col-xs2">
                <input name="is_deleted" value="1" title="启用" {eq name='vo.is_deleted|default="1"' value='1'} checked {/eq} type="radio">            
            </label>
            <label class="layui-col-xs2">
             <input name="is_deleted" value="0" title="禁用" {eq name='vo.is_deleted|default="1"' value='0'} checked {/eq}  type="radio">
         </label>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
<script type="text/javascript">
    window.form.render();
    
</script>
